<template>
  <ul class="news-list">
    <li>编号：{{ query.id }}</li>
    <li>标题：{{ query.title }}</li>
    <li>内容：{{ query.content }}</li>
  </ul>
</template>

<script lang="ts" setup name="NewsDetailUseQuery">
import { toRefs } from 'vue'
import { useRoute } from 'vue-router'
const route = useRoute()
const { query } = toRefs(route)

</script>

<style scoped>
.news-list {
  padding-left: 20px;
}

.news-list>li {
  line-height: 30px;
  list-style: none;
}
</style>